/*
 * TP0.h
 *
 *  Created on: 06/09/2014
 *      Author: marcos
 */

#ifndef TP0_H_
#define TP0_H_

#define DEFAULT_RESOLUTION_W 640
#define DEFAULT_RESOLUTION_H 480
#define DEFAULT_WIDTH 4.0
#define DEFAULT_HEGHT 4.0
#define C_REAL_VALUE -1
#define C_COMPLEX_VALUE 0.0
#define COMPARE_LIMIT 2.0
#define MAX_ITERATIONS 255
#define MAX_GREY_VALUE 255
#define MAGIC_NUMBER "P2"
#define FILE_NAME "output.pgm"

typedef struct{
	float x;
	float y;
}tCoordinate;

typedef struct{
	int errorFound;
	float width;
	int resolutionWidth;
	float heght;
	int resolutionHeight;
	int maxGreyValue;
	char* magicNumber;
	char* outputName;
	int fileOutput;
	tCoordinate center;
}tPGMHeader;

#endif /* TP0_H_ */
